#import numpy as np
import pandas as pd
#import re
def create_cvs():
    df = pd.read_csv('./test_new.csv')

    with open('./predic.txt', 'r') as file:
        lines = file.read()
        str_list = list(lines)
        int_list = list(map(int, str_list))

    label = int_list
    svm = pd.DataFrame(data=label, columns=['label'])
    svm['id'] = df['id']
    svm = svm[['id', 'label']]
    svm.to_csv('output.csv',index=False)

create_cvs()